package com.rent.room.domain;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.rent.common.annotation.Excel;
import com.rent.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 房间信息对象 rent_rooms
 *
 * @author cooper
 * @date 2024-10-09
 */
@TableName(resultMap = "com.rent.room.mapper.RoomInfoMapper.RoomInfoResult")
public class RoomInfo extends BaseEntity
        {
private static final long serialVersionUID = 1L;

        /** 房间ID */
            @TableId(value = "id" , type = IdType.AUTO)
        private Long id;

        /** 房间图片 */
                @Excel(name = "房间图片" )
        private String roomPicture;

        /** 房间ID外键 */
                @Excel(name = "房间ID外键" )
        private Long roomId;

        /** 房间面积 */
                @Excel(name = "房间面积" )
        private BigDecimal area;

        /** 租金类型 */
                @Excel(name = "租金类型" )
        private String rentType;

        /** 房间类型 */
                @Excel(name = "房间类型" )
        private String roomType;

        /** 房东联系方式 */
                @Excel(name = "房东联系方式" )
        private String hostPhone;

        public void setId(Long id) {
            this.id = id;
        }

        public Long getId() {
            return id;
        }
        public void setRoomPicture(String roomPicture) {
            this.roomPicture = roomPicture;
        }

        public String getRoomPicture() {
            return roomPicture;
        }
        public void setRoomId(Long roomId) {
            this.roomId = roomId;
        }

        public Long getRoomId() {
            return roomId;
        }
        public void setArea(BigDecimal area) {
            this.area = area;
        }

        public BigDecimal getArea() {
            return area;
        }
        public void setRentType(String rentType) {
            this.rentType = rentType;
        }

        public String getRentType() {
            return rentType;
        }
        public void setRoomType(String roomType) {
            this.roomType = roomType;
        }

        public String getRoomType() {
            return roomType;
        }
        public void setHostPhone(String hostPhone) {
            this.hostPhone = hostPhone;
        }

        public String getHostPhone() {
            return hostPhone;
        }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id" , getId())
            .append("roomPicture" , getRoomPicture())
            .append("roomId" , getRoomId())
            .append("area" , getArea())
            .append("rentType" , getRentType())
            .append("roomType" , getRoomType())
            .append("hostPhone" , getHostPhone())
                .toString();
    }
}